package com.atguigu.service;

import com.atguigu.entity.SeckillProduct;
import com.atguigu.entity.UserSeckillSkuInfo;
import com.atguigu.result.RetVal;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author GuoJH
 * @since 2021-09-13
 */
public interface SeckillProductService extends IService<SeckillProduct> {
    //2.秒杀商品的详情信息  根据skuId获取秒杀商品
    SeckillProduct getSeckillProductBySkuId(Long skuId);
    //处理预下单
    void prepareSeckill(UserSeckillSkuInfo userSeckillSkuInfo);
    //5.判断用户是否有抢购的资格
    RetVal hasQualified(Long skuId, String userId);
}
